package com.xdjmall.entity;

import java.time.LocalDate;

//购物车项
public class CartItem {
    //购物项主键id
    private Integer cartItemId;
    //用户主键id
    private Integer userId;
    //关联商品id
    private Integer goodsId;
    //数量(最大为5)
    private Integer goodsCount;
    //删除标识字段(0-未删除 1-已删除)
    private Boolean isDeleted;
    //创建时间
    private LocalDate createTime;
    //最新修改时间
    private LocalDate updateTime;
    
	public Integer getCartItemId() {
		return cartItemId;
	}
	public void setCartItemId(Integer cartItemId) {
		this.cartItemId = cartItemId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	public Integer getGoodsCount() {
		return goodsCount;
	}
	public void setGoodsCount(Integer goodsCount) {
		this.goodsCount = goodsCount;
	}
	public Boolean getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}
	public LocalDate getCreateTime() {
		return createTime;
	}
	public void setCreateTime(LocalDate createTime) {
		this.createTime = createTime;
	}
	public LocalDate getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(LocalDate updateTime) {
		this.updateTime = updateTime;
	}
	@Override
	public String toString() {
		return "CartItem [cartItemId=" + cartItemId + ", userId=" + userId + ", goodsId=" + goodsId + ", goodsCount="
				+ goodsCount + ", isDeleted=" + isDeleted + ", createTime=" + createTime + ", updateTime=" + updateTime
				+ "]";
	}
}